// import Layout from '@/views/admin/layout/index.vue'
import Layout from '@/views/admin/layout/index.vue'

const adminRouter = [
  // {
  //   path: '/admin',
  //   component: Layout,
  //   redirect: '/admin/dashboard',
  //   children: [{
  //     path: 'dashboard',
  //     component: () => import('@/views/admin/dashboard.vue'),
  //     meta: { title: 'Dashboard', icon: 'dashboard' }
  //   }]
  // },
  {
    path: '/admin',
    component: Layout,
    redirect: '/admin/user',
    children: [
      {
        path: 'user',
        component: () => import('@/views/admin/user/index.vue'),
        meta: { title: '用户管理', icon: 'form' }
      },
      {
        path: 'authentication',
        component: () => import('@/views/admin/user/userAuthentication.vue'),
        meta: { title: '用户管理', icon: 'form' }
      },
      {
        path: 'petTag',
        component: () => import('@/views/admin/pet/petTag.vue'),
        meta: { title: '宠物类型', icon: 'form' }
      },
      {
        path: 'petType',
        component: () => import('@/views/admin/pet/petType.vue'),
        meta: { title: '宠物类型', icon: 'form' }
      },
      {
        path: 'pet',
        component: () => import('@/views/admin/pet/index.vue'),
        meta: { title: '宠物管理', icon: 'form' }
      },
      {
        path: 'petAdoption',
        component: () => import('@/views/admin/pet/petAdoption.vue'),
        meta: { title: '宠物管理', icon: 'form' }
      }
    ]
  },
]

export default adminRouter